<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
    xmlns:h="http://java.sun.com/jsf/html"  
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:p="http://primefaces.org/ui"
    xmlns:ui="http://java.sun.com/jsf/facelets">  
 
    <h:head>
		<title>Cadastro de Unidade</title>
    </h:head>
    <link type="text/css" href="css/custom-theme/jquery-ui-1.8.21.custom.css" rel="stylesheet" />
    <link rel="stylesheet" href="css/style.css" type="text/css"/>
    <script type="text/javascript" src="scripts/easypaginate.js"></script>
    <script type="text/javascript" src="scripts/help.js"></script>
	<style type="text/css">  
    	.ui-widget {  
        	font-size: 12px !important;  
    	} 
    	.ui-layout-west {  
		    z-index:20 !important;  
		    overflow:visible;
 
		}  

	</style>
      
<h:body>      
		<p:panelGrid columns="2">  

		  	        <h:outputText value="Tipo: " />  
			        <p:selectOneMenu value="#{unidadeMB.unidade.tipo.id}"  effect="fade" style="width: 200px" >  
			            <f:selectItems value="#{unidadeMB.tipoUnidades}" var="tipo" itemLabel="#{tipo.nome}" itemValue="#{tipo.id}" style="width: 200px"/>  
			        </p:selectOneMenu>



		    <h:outputLabel for="nome" value="Nome: *" />  
		    <p:inputText id="nome" value="#{unidadeMB.unidade.chave}" required="true" label="Nome" size="30"/>  
		  
		    <f:facet name="footer">  
		       <p:commandButton value="Cadastrar" actionListener="#{unidadeMB.salvar}"  ajax="false" onclick="dlgUnidade.hide()" update="painelContexto pojoPickList" />
		    </f:facet>  
		</p:panelGrid>
</h:body>  
</html> 